package com.hs.srm.admin.modules.pricemanagement.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.hs.srm.admin.modules.pricemanagement.entity.InquiryQuotationEntity;

/**
 * @author yanfei
 *
 * @date 2019年3月1日
 * 询价单抬头数据访问层
 */
public interface InquiryQuotationDao extends BaseMapper<InquiryQuotationEntity> {

	//查询供应商税码
	String getVendorTaxCode(String vendorCode) ;

	//查询报价单的最大单号
	    String selectversion();
		//查询报价报价单的版本号
		String selectnum();
		InquiryQuotationEntity  selectByNameInquiryTotalCode(@Param("inquiryTotalCode") String inquiryTotalCode);
		
		List<InquiryQuotationEntity> findbyInquiryQuotation();
		
		List<InquiryQuotationEntity> findbyIds(@Param("idlist") List<String> idlist);
		
		InquiryQuotationEntity findbyId(@Param("quotationId") String quotationId);

		//根据采购订单行项目id查询
		List<InquiryQuotationEntity>  findByNpkID(@Param("npkId") String npkId);

		//分页查询数据
		public List<InquiryQuotationEntity> selectDetailPage(RowBounds rowBounds,
		        @Param("ew") Wrapper<InquiryQuotationEntity> wrapper, @Param("params") Map<String, Object> params);

		//根据采购申请编码查询
		List<InquiryQuotationEntity> findByOaDocId(@Param("OaDocId") String OaDocId);
	
}
